package com.shop.vo.commodity;

import lombok.Data;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class AddCommodityVo {

    @NotEmpty(message = "商品名称不能为空！")
    private String commodityName;

    @NotEmpty(message = "商品编码不能为空")
    private String commodityNo;

    @NotEmpty(message = "商品标题不能为空")
    private String title;

    @NotNull(message = "价格不能为空")
    private BigDecimal price;
//
//    @NotEmpty(message = "尺寸不能为空")
//    private String size;
}

